<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div {
      width: 100px;
      height: 100px;
      border: 1px solid red;
/**
设置超出部分的显示效果
visible 默认
hidden 隐藏
scroll 滚动
 */
      overflow: scroll;
    }
    img{
      /**
      行内元素垂直对齐方式:top middle bottom baseline
       */
      vertical-align: middle;
    }
  </style>
</head>
<body>
<input type="text" ><img src="2.webp" width="100">

<div>
<img src="2.webp" title="1232"></div>
</body>
</html>